@import "01_colors.scss";

.feedback {
    width: 100%;
    height: 539px;
    background: $color-one;
    box-sizing: border-box;
    position: relative;
    z-index: 200;
    max-width: 1440px;
    min-width: 325px;
    margin: 0 auto;
  }
  
  .feedback-flex {
    width: 100%;
    max-width: 1440px;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    transition: .3s ease;
    position: absolute;
    top: 0px;
    // display: none;
  }
  
  .feedback-form {
    margin-right: 97px;
    padding-right: 31px;
  }
  
  .feedback-text-h2 {
    font-weight: 400;
    font-size: 64px;
    line-height: 72px;
    color: #ffffff;
    margin-left: 96px;
    margin-top: 76px;
    margin-bottom: 0;
    width: fit-content;
  }
  
  .feedback-text-p {
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: #ffffff;
    margin-top: 35px;
    margin-left: 96px;
    width: fit-content;
    max-width: 615px;
  }
  
  .feedback-form {
    width: 456px; 
    height: 440px;
    margin-top: 48px;
    margin-left: 23px;
    padding-left: 31px;
    padding-top: 31px;
    background: #FCF8F3;
    border-radius: 40px;
    box-sizing: border-box;
  }
  
  .form {
    display: flex;
    flex-direction: column;
  }
  
  .name,
  .email,
  .phone {
    width: 394px;
    height: 60px;
    background: #ffffff;
    border-radius: 12px;
    border: 0px;
    font: inherit;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #8f8f8f;
    padding-left: 18px;
    margin-bottom: 16px;
    outline: none;
    box-sizing: border-box;
  }
  
  .label {
    display: none;
  }
  
  .button-subscribe {
    width: 394px;
    height: 60px;
    background: $color-one;
    border-radius: 12px;
    border: 0px;
    cursor: pointer;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #ffffff;
    margin: 0 auto;
  }
  
  .button-subscribe-span {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #ffffff;
    margin: 0 auto;
  }
  
  .feedback-form-p,
  .feedback-form-a {
    max-width: 400px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #8F8F8F;
    margin-top: 46px;
    text-decoration: none;
  }
  
  .feedback-form-a {
    text-decoration: underline;
  }

  // Animation

  .animation-go-up {
    top: -50px;
    opacity: 0;
    transition: 0.3s ease;
  }

  .display-none {
    display: none;
  }

  .check-circle {
    width: 121px;
    height: 121px;
    background-color: #fcf7f1;
    position: absolute;
    top: 30px;
    left: 50%;
    margin-left: -60px;
    mask-image: url("../img/check-circle.svg");
    transform: translateY(100%);
    opacity: 0;
    transition: 0.5s ease;
  }

  .group-circle {
    width: 94px;
    height: 94px;
    background-color: #fcf7f1;
    position: absolute;
    top: 20px;
    left: 70%;
    transform: translateX(-50%);
    mask-image: url("../img/Group.svg");
    transform: translateY(130%);
    opacity: 0;
    transition: 0.5s ease;
  }

  .thanks-flex {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 160px;
  }

  .thanks {
    font-weight: 300;
    font-size: 112px;
    line-height: 124px;
    text-transform: uppercase;
    margin: 0;
    color: white;
    transform: translateY(100%);
    opacity: 0;
    transition: 0.5s ease;
  }

  .thanks-text {
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    margin: 20px;
    color: white;
    transform: translateY(200%);
    opacity: 0;
    transition: 0.5s ease;
  }

  .thanks-text-bold {
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    margin: 20px;
    color: white;
    transform: translateY(200%);
    opacity: 0;
    transition: 0.5s ease;
  }

  .thanks-go-up {
    transform: translateY(0);
    opacity: 1;
    transition: 0.5s ease;
  }

  @media (max-width: 1439px) {
    .feedback-text-h2 {
      font-size: 54px;
      line-height: 54px;
    }
    .feedback-text-p {
      font-size: 24px;
      line-height: 32px;
      margin-top: 44px;
      max-width: 450px;
    }
  }

  @media (max-width: 1280px) {
    .feedback-text {
      width: 61%;
    }
    .feedback-text-h2 {
      margin-top: 78px;
    }
    .feedback-form {
      width: 380px;
      margin-top: 50px;
      margin-left: 27px;
    }
    .email, .name, .phone {
      font-size: 18px;
      line-height: 24px;
    }
    .email, .name, .phone, .button-subscribe, .feedback-form-p {
      width: 317px;
    }
    .feedback-form-p, .feedback-form-a {
      font-size: 12px;
      line-height: 14px;
    }
    .button-subscribe-span {
      font-size: 18px;
      line-height: 24px;
    }
  }

  @media (max-width: 1179px) {
    .feedback-text-h2 {
      font-size: 38px;
      line-height: 38px;
    }
    .feedback-text-p {
      font-size: 20px;
      line-height: 26px;
      max-width: 380px;
    }
    .thanks-text, .thanks-text-bold {
      font-size: 20px;
      line-height: 26px;
    }
  }

  @media (max-width: 1024px) {
    .feedback {
      height: 818px;
    }
    .feedback-flex {
      flex-direction: column;
      align-items: center;
    }
    .feedback-text {
      width: fit-content;
      text-align: center;
      margin-top: 84px;
    }
    .feedback-text-h2, .feedback-text-p {
      margin: 0 auto;
    }
    .feedback-text-h2 {
      font-size: 48px;
      line-height: 52px;
    }
    .feedback-text-p {
      margin-top: 28px;
      font-size: 24px;
      line-height: 30px;
      max-width: 450px;
    }
    .feedback-form {
      width: 495px;
      height: 425px;
      margin: 60px 0 0 0;
      padding: 31px 31px 0 31px;
    }
    .email, .name, .phone, .button-subscribe, .feedback-form-p {
      max-width: none;
      width: 100%;
    }

    .thanks-text, .thanks-text-bold {
      font-size: 32px;
      line-height: 36px;
      max-width: 80%;
      text-align: center;
    }
    .thanks {
      margin: 80px;
    }
  }

  @media (max-width: 745px) {
    .feedback-form {
      height: 441px;
      margin: 44px 0 0 0;
      padding: 45px 31px 0 31px;
    }
  }

  @media (max-width: 744px) {
    .feedback {
      height: 806px;
    }
    .feedback-text {
      max-width: 90%;
    }
    .feedback-text-h2 {
      font-size: 30px;
      line-height: 36px;
    }
    .feedback-text-p {
      font-size: 20px;
      line-height: 22px;
    }
    .feedback-form {
      width: 457px;
      margin: 74px 0 0 0;
      padding: 28px 31px 0 31px;
    }
    .thanks {
      font-size: 62px;
      line-height: 64px;
    }
  }

  @media (max-width: 580px) {
    .feedback {
      height: 788px;
    }
    .feedback-form {
      width: 85%;
      height: 432px;
      margin: 39px 20px 0 20px;
    }
    .feedback-form-p {
      margin-top: 26px
    }
    .thanks-text, .thanks-text-bold {
      font-size: 24px;
    }
  }